import request from '@/utils/request'

// 活动列表
export function activityList(query) {
    return request({
      url: '/league/activity/list',
      method: 'get',
      params: query
    })
  }

  // 活动列表-导出
export function activityListExport(query) {
    return request({
      url: '/league/activity/export',
      method: 'post',
      data: query
    })
  }


  // 单个活动详情
export function rowActivityDetail(id) {
    return request({
      url: '/league/activity/'+ id,
      method: 'get'
    })
  }

  // 新增活动
export function addActivity(data) {
    return request({
        url: '/league/activity',
        method: 'post',
        data
    })
}


  // 修改活动
export function editActivity(data) {
    return request({
        url: '/league/activity',
        method: 'put',
        data
    })
}

  // 删除活动
export function delActivity(id) {
    return request({
        url: '/league/activity/'+ id,
        method: 'delete'
    })
}

